import request from '@/utils/request'

// 查询剧集列表
export function listEpisodes(query) {
  return request({
    url: '/video/episodes/list',
    method: 'get',
    params: query
  })
}

// 查询剧集详细
export function getEpisodes(id) {
  return request({
    url: '/video/episodes/' + id,
    method: 'get'
  })
}

// 新增剧集
export function addEpisodes(data) {
  return request({
    url: '/video/episodes',
    method: 'post',
    data: data
  })
}

// 修改剧集
export function updateEpisodes(data) {
  return request({
    url: '/video/episodes',
    method: 'put',
    data: data
  })
}

// 删除剧集
export function delEpisodes(id) {
  return request({
    url: '/video/episodes/' + id,
    method: 'delete'
  })
}

// 查询剧集列表
export function getListEpisodes(query) {
  return request({
    url: '/video/episodes/getList',
    method: 'get',
    params: query
  })
}

// 查询剧集列表
export function getEpisodesList(query) {
  return request({
    url: '/video/episodes/getEpisodesList',
    method: 'get',
    params: query
  })
}
